#!/bin/sh

haxe openhaxechart.hxml &> errors.txt
sort < errors.txt > sorted-errors.txt
head errors.txt
wc -l sorted-errors.txt

echo
echo
echo

grep "should be" errors.txt | sort > should-be.txt && tail should-be.txt
head should-be.txt
wc -l should-be.txt

echo
echo
echo

grep "has no" errors.txt | sort > has-no.txt && tail has-no.txt
head has-no.txt
wc -l has-no.txt


echo
echo
echo


# {*,*/*,*/*/*,*/*/*/*}.hx
# gr 'Array<TODO>' {*,*/*,*/*/*,*/*/*/*}.hx &> arrays.txt && most arrays.txt
# gr -e "[a-zA-Z_]\+\[[a-zA-Z\"\'-]\+\]" {*,*/*,*/*/*,*/*/*/*}.hx | grep -v '//'
